<!DOCTYPE html>
<html>
<body>
Test for crbug.com/224317: data:uri images should load asynchronously and reload synchronously.<br/>
<script>
    if (window.testRunner) {
        testRunner.waitUntilDone();
        testRunner.dumpAsText();
    }

    var image = new Image();
    image.src = "";

    if (location.hash != "#reloaded") {
        if (image.width == 100 || image.height == 100) {
            document.write("FAIL");
            if (window.testRunner)
                testRunner.notifyDone();
        } else {
            location.hash = "#reloaded";
            location.reload();
        }
    } else {
        if (image.width == 100 || image.height == 100) {
            document.write("PASS");
        } else {
            document.write("FAIL");
        }
        if (window.testRunner)
            testRunner.notifyDone();
    }
</script>
</body>
</html>
